package com.acsior.hibernate.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;

/**
 * ApplicationService entity. @author MyEclipse Persistence Tools <b><i>powered
 * by Belev</i></b>
 */
@Entity
@Table(name = "application_services")
@GeneratorKey(tableName = "service_requests")
public class ApplicationServiceVO extends ServiceRequestVO {

	private static final long serialVersionUID = -7115465631331407982L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "application_id", nullable = false)
	private ApplicationVO application;

	@Column(name = "notes")
	private String notes;

	/** default constructor */
	public ApplicationServiceVO() {
		super();
	}

	/** @return the application */
	public ApplicationVO getApplication() {
		return this.application;
	}

	/** @return the notes */
	public String getNotes() {
		return this.notes;
	}

	/** @param application */
	public void setApplication(ApplicationVO application) {
		this.application = application;
	}

	/**
	 * @param notes
	 *            the notes to set
	 */
	public void setNotes(String notes) {
		this.notes = notes;
	}

}